home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr15 / povcad20.zip / POVCAD.DOC next >
Text File  |  1993-04-17  |  33KB  |  835 lines

  1.                  POVCAD 2.0 by 
  2.                 Alfonso Hermida 
  3.              Pi Square BBS (301)725-9080
  4.             CompuServe 72114,2060
  5.                 4/17/93
  6.  
  7. NOTE: POVCAD is written in Visual Basic 2.0 for Windows (Microsoft Corp).
  8.       To run it you'll need the runtime module VBRUN200.DLL.        
  9.             
  10. -------------------------------------------------------------------------
  11. Copyright (c) 1993 by Alfonso Hermida.
  12. All rights reserved.  The program POVCAD.EXE is distributed "As is". 
  13. The author assumes no responsibility for damages resulting from the use of
  14. this program.  The program has been tested but no software is "bug-free" 
  15. so...use at your own risk!
  16. -------------------------------------------------------------------------
  17.  
  18. Distribution:
  19. Feel free to distribute POVCAD.EXE and it's companion file POVCAD.DOC for
  20. non comercial purposes.  Distributors may charge up to $5 for this program.
  21. If you wish to distribute this program with a comercial software or book
  22. please contact the author at the BBS number given above or by mail:
  23.        Alfonso Hermida, 9346 Kings Grant Rd, Laurel, MD 20723.
  24.  
  25. This program is distibuted as Shareware.  You may use this program for
  26. a period of 30 days at which you must either register this software or
  27. stop using it.  Registration entitles you to support thru the BBS.  
  28.  
  29. Registration cost is only $15 and helps continuing work to improve this
  30. software.  To register send your check or money order to the above address
  31. with your name, address, phone number and a password(for BBS access).  Check
  32. at the end of this document for registration form.
  33.  
  34. --------------------------------------------------------------------------
  35.  
  36. THANKS!
  37. I want to take the opportunity and thank a lot of people and BBS that have
  38. helped POVCAD become such a success.  I would like to thank Albert Waltner,
  39. Peter Jack, Curtis Olson for Beta testing and all the helpful comments.  
  40. Dan Farmer was kind enough to upload the file to COMPUSERVE.  Steve Anger
  41. gave me some help with the smooth triangle problem I was having (it turns
  42. out that the POVRAY version I was running had a bug!).  There were some
  43. great BBS such as:
  44.  
  45. * You Can Call Me Ray BBS (Illinois)
  46.    Bill Minus/Aaron Collins (SysOps)
  47.    (708)358-5611
  48.  
  49. * The Graphics Alternative BBS (California)
  50.    Adam Shiffman (SysOp)
  51.    (510)524-2780
  52.  
  53. * Trace of Reality BBS (Virginia)
  54.    Joe Liccel (SysOp)  
  55.    [system is down at this time]
  56.  
  57. * Monsoon BBS (Maryland)
  58.    Sunil Gupta (SysOp)
  59.    (410)235-2365
  60.  
  61. In Europe: Raytech BBS - The UK's only Raytracing BBS
  62.    Paul Smith (SysOp)
  63.    +44 862 88340
  64.  
  65.  
  66. who helped me distribute my programs and overall support.
  67.  
  68. And for other specific thanks, check the BUG LIST at the end of this document.
  69. Finally, all of you who were so kind to register their copies.  This proves
  70. that Shareware is alive and well.
  71. ----------------------------------------------------------------------------
  72.  
  73.  
  74.  
  75. What's POVCAD?
  76.  
  77. POVCAD is a small solid object modeling tool to create scene files for
  78. raytracers.  It's based primarily on the POV(Persistence of Vision)
  79. raytracer written by the Persistence of Vision Group.  POV is a copyrighted
  80. freeware raytracer.  If you would like to get in contact with them, 
  81. contact Compuserve (800)848-8990, Graphdev forum or call YCCMR BBS 
  82. (708)358-5611, which is a raytracer specific BBS.
  83.  
  84. With POVCAD you're able to create visually the scene file and have a
  85. pretty good idea (geometry-wise) of how the objects are positioned in 
  86. 3D space.  There is no support for textures and color visualization since
  87. POVCAD is a wire frame-based program.  Nor, you'll see the results of
  88. any constructive solid geometry operation (boolean operation..for short).
  89.  
  90.  
  91. POVCAD supports the following objects:
  92. * planes
  93. * cylinder
  94. * cone
  95. * sphere
  96. * ellipsoid
  97. * torus 
  98. * box
  99. * height_field
  100. * Raw data files (loading)
  101. * Sweep (solid of revolution)
  102. * Extrude (operation on curves)
  103. * light_source/spotlight 
  104. * camera
  105.  
  106. and operations such as union, difference,intersection and composite 
  107. objects.  Textures can be selected from a list without need of typing.
  108. The scene view can be changed between isometric,YX,YZ and ZX.
  109. A session list shows the steps you took to create any image and you may
  110. select any of the objects from the list by clicking on it.
  111.  
  112. An interesting feature is the ability to create or read data files
  113. with path information for animation software.  You can create linear
  114. interpolated data, circular motion, parabolic, helix or just freehand
  115. mode, where you sketch the path with the mouse.  POVCAD does not do
  116. animation but it plots the path files so you can see how things look
  117. on the screen.  The data can be transformed like any object in POVCAD.
  118.  
  119. In the File menu, there is an option to save the session file and to 
  120. Export to POV (that is to create the POV session file).
  121.  
  122. ***** PRINTOUT **********************************************************
  123. You may select the FILE menu, then the PRINT command to get a hardcopy
  124. of the image on the screen.  You must have a printer configured to do so.
  125. ************************************************************************* 
  126.  
  127. AN IMPORTANT NOTE:  All rotations and translations are absolute(measured
  128. from the origin).  Therefore, if an object has been translated to (1,1,1)
  129. and you change the x to 1.5, it will be (1.5,1,1) and not (2.5,1,1).
  130.  
  131. My best suggestion is that you play with it for a while to get a better
  132. understanding of the program.  
  133.  
  134.  
  135. What's NEW on version 2.0 ************************************************
  136.  
  137. 1) Ability to select objects with the mouse and then copy, move, 
  138.    copy/translate or copy/rotate it.
  139.  
  140. 2) POVCAD2 now reads 2 ASCII files: TEXTURES.DEF and COLORS.DEF.  
  141.    Create and use these files to include additional texture and color names.
  142.  
  143. 3) The LIGHT menu has been changed to MISC[elaneous].  There you can find the
  144.    LIGHT and CAMERA objects.
  145.  
  146. 4) The LIGHT object acts as a SPOTLIGHT also. Check "Creating Lightsources".
  147.  
  148. 5) Camera object can now be created and added to the POV file.
  149.       
  150. 6) Extrude operation on a curve - convert a curve into a collection of plates.
  151.    Each plate has 2 triangles.
  152.  
  153. 7) Grid spacing can be modified (check VIEW menu command)
  154. ********************************************************************************
  155.  
  156.  
  157.  
  158. Creating an Object
  159.  
  160. To create an object is easy.  Here are the steps:
  161.  
  162. 1) Click on the Object menu and click again on the object you would
  163.    like to create.  All objects start at the origin, except the sphere
  164.    which asks for the center coordinates. 
  165.  
  166. 2) To rotate/translate or scale the object, click on Xform and select
  167.    the appropiate transformations.  The way this program was developed,
  168.    rotations are ALWAYS applied first THEN the translations.   Keep that
  169.    in mind.
  170.  
  171. 3) If you need to edit/delete an object, click on Session and click on the
  172.    object to be modified.  On the bottom right part, the current object
  173.    is shown, with it's texture.  If the object is already there,  you can
  174.    operate on it without having to click on Session.
  175.  
  176. NOTE:The LAST object created is ALWAYS the current object.  If you wish
  177.      to transform it, just go directly to Xform or Texture (if you want
  178.      to put a texture to it).  
  179.  
  180.    To delete an object, either select it (thru the Session menu) or just
  181.    go to Edit if it's the last object drawn and click on Del.  You may use 
  182.    the mouse to select an object too...read the section below titled
  183.    "Selecting objects with a mouse..."
  184.  
  185.  
  186. Textures and Colors 
  187. To attach a texture or color, select an object (if you do not select an 
  188. object, the current selected object will be used).  Click on TEXTURE or 
  189. COLOR and select the color or texture.  You may edit the text box that 
  190. appears.  Press the OK icon.
  191.  
  192. To change the texture, simply reselect the object and click on a new texture 
  193. or color.  
  194.  
  195. If you have created your own textures and colors, you may create 2 ASCII 
  196. files and save them in the directory where POVCAD resides.  The first one 
  197. is "TEXTURES.DEF". It could look something like this:
  198.  
  199. my_new_texture
  200. acid_rain
  201. sweet_and_sour
  202.  
  203. The file basically consists of the "names" of the textures.  To include the 
  204. definition in the scene, add the a line similar to #include "mytextur.inc", 
  205. where the definitions are given.  In this example 3 new textures will be 
  206. added to the texture list.  Texture names CAN NOT have spaces!  
  207. i.e.  a_texture_name, myTexture are valid examples, but a texture name, 
  208.       my Texture are not.
  209.  
  210. To do the same with the colors, create an ASCII file and name it "COLORS.DEF".  
  211. The same applies to it.  The file must be in the same directory as POVCAD.
  212.  
  213. ***** To attach textures and colors to CSG objects check the *************
  214.        "Creating Constructive Solid Geometry" section
  215.  
  216. Creating Solids of Revolution (Sweep command)
  217.  
  218. 1) Click on the PointOff button (to enable point creation)
  219. 2) Select a View different than Iso (i.e. YX,ZX or YZ)
  220. 3) Click on the window and draw a contour (up to 25 points)
  221. 4) Select the Sweep command from the Objects menu
  222. 5) give a filename.ext (the data will be saved in RAW format)
  223. 6) indicate sweep angle and number of segments
  224.  
  225. * If you wish to erase the points and start all over use the Del Points
  226.   command in the Edit menu.
  227. * SnapOn forces the points to fall in the intersections of the grid
  228.   lines, while GridOff let's you select any place on the screen.
  229.  
  230.  
  231. NOTE: The format of RAW and SWEEP data files is:
  232.   x1 y1 z1 x2 y2 z2 x3 y3 z3
  233.   x4 y4 z4 x5 y5 z5 .......
  234.   ...... ect ..............
  235.  
  236. where each line represents a triangle.  Usually I use Steve Anger's
  237. RAW2POV program to create objects with RAW data files.  RAW2POV will
  238. optimize A LOT the image, while POVCAD will just convert the data to
  239. triangles and that's it! 
  240.  
  241.  
  242. *NEW* Creating an EXTRUDEd object (saves data in RAW format)
  243.  
  244. The EXTRUDE command (under the OBJECT menu) works in the same way the
  245. SWEEP command does.  SWEEP rotates and copies a curve while EXTRUDE 
  246. displaces and copies the curve.  As an example, if you create a line and
  247. extrude it, it will look like a plate.  The EXTRUDEd object will be diplaced
  248. in an orientation perpendicular to the computer screen and in the 
  249. direction going into the monitor.  In other words, if you are currently in
  250. the YX view, the cuve will be EXTRUDEd in the +Z direction(into the screen).
  251.  
  252. To create an EXTRUDEd curve do the following:
  253. 1) select a view different from ISOmetric (YX,YZ or ZX)
  254. 2) click on the PointsOFF icon to enable point creation
  255. 3) create a curve by clicking on the drawing window
  256. 4) click on the OBJECT menu, then on EXTRUDE
  257. 5) give a name for the file to be created (RAW format)
  258. 6) enter the extrusion length
  259.  
  260. * The file will be saved in a RAW data format.  
  261. * Click on ISO to view the final object.
  262.  
  263.  
  264. Try this with EXTRUDE:
  265.  
  266. You can create letters with the EXTRUDE command that will look like sheets
  267. of metal that were bent to form letters.  As an example create a series of
  268. points to form the letter "S".  Use the EXTRUDE command and save it to a
  269. file.  Since that file is in RAW format, use Steve Anger's RAW2POV and make
  270. smooth surfaces.  The final product shows a nice "S" letter that looks like
  271. it was "rolled" instead of "bent" to form the letter "S".  You can have both
  272. effects.  POVCAD will generate a "bent" effect while RAW2POV can create both
  273. effects.
  274.  
  275.  
  276. Creating Constructive Solid Geometry 
  277.  
  278. Let's use an example to explain this topic:
  279. We'll assume we want to create a cylinder with a hole in the middle.
  280. Since the operation is a difference:
  281.  
  282. 1) click on CSG and then select "difference".
  283. 2) create the cylinder and position it.
  284. 3) create a sphere (the hole) and position it.
  285. 4) Click on CSG and then "Close".
  286.  
  287. Close is the command to tell the program that the current CSG operation
  288. has ended.  The Session list would look like this:
  289.  
  290. DIFFR
  291. CYL ........
  292. SPH ........
  293. ENDF
  294.  
  295. Where:
  296. DIFFR   = difference operation
  297. CYL ... = cylinder definition and transformations
  298. SPH ... = sphere definition and transformations
  299. ENDF    = tells the program that this is where the difference operation
  300.       ends
  301.  
  302. Now let's assume that you want to create a union of 2 cylinders each
  303. one with a hole in it:  This is how the Session list would look like:
  304.  
  305.               comments:
  306. UNION                  1) union operation starts here
  307. DIFFR                  2) difference operation starts here
  308. CYL ....               3) cylinder #1
  309. SPH ....               4) sphere #1
  310. END                    5) clicked on CSG then on Close
  311. DIFFR                  6) Start another difference
  312. CYL ....               7) cylinder #2
  313. SPH ....               8) sphere #2
  314. END                    9) clicked on CSG then Close
  315. ENDF                   10)clicked on CSG then Close 
  316.              (click on TEXTURE now to add one to the object)
  317.  
  318. As you can see, the software uses END and ENDF to distinguish between
  319. intermediate CSG operations and the final CSG operation...in this case
  320. the UNION was the final and the DIFFR were the intermediate.
  321.  
  322. The same idea applies to all CSG operations.  Composite is not a CSG but
  323. it was the best place to put it. <grin>
  324.  
  325.  
  326. * TEXTURES ON CSG OBJECTS *
  327.  
  328. To put a texture on a CSG object click on ENDF(using the Session command)
  329. to make it the current object (you'll see ENDF at the bottom right part
  330. of the screen) then click on TEXTURE to add the one that you want.
  331.  
  332.  
  333. Transforming CSG /Composite objects
  334.  
  335. At this point it is NOT possible to transform (XFORM) the whole set of
  336. objects.  You may XFORM any of the individual objects that compose a CSG
  337. object.
  338.  
  339.  
  340. Quick Comment
  341.  
  342. If you want to clip an object with 2 planes do the following:
  343. 1) Click on "intersection"
  344. 2) create the object to be clipped
  345. 3) create plane #1
  346. 4) create plane #2
  347. 5) rotate plane #2 so that the normal is facing oposite
  348.    to plane #1's normal.  (When a plane is created, the normal
  349.    is ALWAYS in the + direction of the axis.) Also you must translate
  350.    plane #2 so they're not in the same place. 
  351.  
  352.    Example:
  353.    plane#1: PLANE_Y,Translate_Y = .5 
  354.    plane#2: PLANE_Y,Translate_Y = -.5,Rotate_Z = 180
  355.    
  356.    Plane #1's normal is pointing in the +Y direction, while
  357.    plane #2's normal is in the -Y direction (due to rotation
  358.           about Z of 180 degrees)
  359.  
  360.    Any object placed in the origin will be clipped at Y=0.5 and
  361.    Y=-0.5 . Try it and see!
  362.  
  363.  
  364. *NEW* Selecting objects with the mouse/ rotations and translations
  365.  
  366. There are different methods for selecting objects so that you may modify them.
  367.  
  368.    1) Clicking on SESSION
  369.       You may click on the SESSION command in the main menu.  This will show
  370.       a list of all objects that are currently in the database.  To select 
  371.       any of them, simply click on the line where it appears, then click on 
  372.       OK. Observe that on the lower right corner, the object selected will be
  373.       displayed(with it's texture).  Now you may use XFORM or click on EDIT
  374.       or use any of the next methods.
  375.  
  376.       The current object always will appear on the lower right corner of the
  377.       screen.  If you wish to reselect a new one, you may either, click on 
  378.       the SESSION command, or click on the scroll bar on the lower right 
  379.       corner to move thru the objects.  The one being shown is the current 
  380.       one.  Any editing command will apply to the current selected object.
  381.  
  382.  
  383.    2) Use of the left button(mouse)
  384.       To select an object, check that the PointsOn/OFF icon is OFF.  Now,
  385.       move the mouse cursor to a point near the center of the object that
  386.       you want to select.  Press, the left button.  The object selected will
  387.       be redrawn in a light color.  If the computer selected the wrong one,
  388.       simply move the mouse to another position near the center point of the 
  389.       object and click.  If still the computer selects the wrong one, you may
  390.       change the current view (Iso,YX,YZ,ZX) to find a better viewpoint.
  391.  
  392.       This command may select the incorrect object when various objects share
  393.       a common center point, or the object you want to select is behind
  394.       another one.  In those cases, change the VIEW and retry.  In the worst  
  395.       case, use the SESSION command to select the object.
  396.  
  397.       * SWEEP and RAW objects can't be selected with the mouse! use the 
  398.        methods explained on step 1) *
  399.  
  400.       * CONEs are selected by clicking on the apex or near it *
  401.  
  402.       Once you click on an object and select it, the object will be drawn in
  403.       a light color. If you click on REDRAW, all the objects will be drawn in 
  404.       black, but the current object will stay current.      
  405.  
  406.   3)  Use of the right button(mouse)
  407.       Once an object has been selected, you may wish to Move,Copy,Copy and
  408.       Rotate or Copy and Translate.  To do this, select and object.  The next
  409.       step depends on the command:
  410.        
  411.     a) Move
  412.        To move the current selected object, move the mouse to the 
  413.        position where you want the object.  Press the right button and 
  414.        select MOVE.
  415.        
  416.     b) Copy
  417.        To copy the current selected object, move the mouse to the 
  418.        position where you want the new object.  Press the right button 
  419.        and select COPY. The texture of the new object will be the same 
  420.        as the old object's.
  421.       
  422.     c) Copy/Rotate
  423.        This command is used to make multiple copies of an object, all of 
  424.        them rotated by a certain amount of degrees.  To use this command, 
  425.        select an object, then move the mouse to the a point that will 
  426.        become the center of rotation.  Click the right button.  Select 
  427.        Copy/Rotate.  Enter the angle between objects (in degrees).  Enter 
  428.        the number of copies to make, NOT including the original one.
  429.  
  430.     d) Copy/Translate
  431.        This command is used to make multiple copies of an object, each 
  432.        one at a certain X,Y,Z distance from the other.  Select an object.  
  433.        Press the right button.  Enter the number of copies and the 
  434.        displacements of the new objects.  The displacement is a 
  435.        cumulative effect, for example:
  436.  
  437.          if a sphere is at (0,0,0) and you enter x=.2,y=.1,z=.5 and enter 
  438.          3 copies then, object #1 will be at (.2,.1,.5) the next one at 
  439.          (.4,.2,1.0)  and the last at (.6,.3,1.5).  
  440.     
  441.        You may enter a value of zero for any of the coordinates.  If you 
  442.        put all zeroes, you'll get multiple copies in the same place!!!  
  443.  
  444.  
  445. Creating PATH data files for your animations
  446.  
  447. This feature allows you to create data files of paths that may be
  448. used in animations programs.  Simply select the Path menu and select
  449. which curve to create.  These data files can be XFORMed in the same
  450. fashion as any of the objects supported by POVCAD.
  451.  
  452. To create a curve, select the corresponding curve and you'll be asked
  453. for a filename to save the data. This is done to reduce memory
  454. requirements on your system.  The following is a brief description:
  455.  
  456. 0) Load and SAVE
  457.    Load read any 3D point ASCII file and converts it into a path,
  458.    i.e. lines will be drawn to connect the points sequentially.  Your
  459.    data file SHOULD NOT have an extension *.PTH since this is used by
  460.    POVCAD to save the final path files.
  461.  
  462.    SAVE converts your data file, i.e. filename.ext into filename.PTH.
  463.    Initially, filename.ext was a set of 3D points that you created
  464.    yourself or thru POVCAD.  Since you may want to rotate, scale or
  465.    translate the data, POVCAD takes those operations and changes your
  466.    data.  In order to keep the original data intact, POVCAD saves the
  467.    new data with the PTH extension.
  468.  
  469.    The EXPORT to POV function in the FILE menu also creates the *.PTH
  470.    files.  If you haven't created any 3D objects and you don't need to
  471.    create a POV file, simply use the SAVE function in the PATH menu, to
  472.    save your animation files.
  473.  
  474.    To merge 2 or more data files, drop to DOS or load a texteditor
  475.    and simply append one file to the other to create more complicated
  476.    path data files.  It's that simple! (gasp!...I hope it works)
  477.  
  478.  
  479. 1) Freehand
  480.    Converts a set of points created on the screen to a path.  Maximum
  481.    number of points is 25 (at this point at least)
  482.  
  483. 2) Linear
  484.    Click 2 points (more than that will be discarded) on the screen.
  485.    The routine will subdivide the line segment into a set of points.
  486.  
  487. 3) Circular
  488.    Creates a circular path.  No points have to be created with the
  489.    mouse.
  490.  
  491. 4) Parabolic
  492.    Follows the curve Y = aX^2 where a is the parabola coefficient
  493.    and the value of Y is the height.  The value of Z is zero but
  494.    you may create this curve from any view.  The routines will swap
  495.    the axis to reflect the view you're in.
  496.  
  497. 5) Helix
  498.    Creates a "spring".  The curve follows :
  499.     x = a cos(2*pi*t)
  500.     y = a sin(2*pi*t)
  501.     z = t
  502.     
  503.     Therefore Z is the "height" of the function.  This depends on the
  504.     current view setting.
  505.  
  506. After creating the curves you may use them to animate your raytraced
  507. images.  POVCAD simply creates the curves and shows them with the
  508. geometry so you have a better understanding of how things might look.
  509. Remember, you can scale, rotate and translate the data like any other
  510. object!  have fun!
  511.  
  512. Creating LightSources
  513.  
  514. To create a light_source object, click on the MISC command in the main
  515. menu, then LIGHT.  Enter the origin coordinates of the light_source (x,y,z).  
  516. To add a color to the light_source, select it (Session) then click on the
  517. Color command in the main menu.  You may select any color or edit the
  518. string "red # green # blue #" by replacing the "#" with appropiate numbers.
  519. If you wish to move the light_source, click on XFORM and modify the
  520. translate parameters.
  521.  
  522. The rotation angles do not apply to light_sources.  The scale factors will
  523. only affect the size of the light_source symbol (resembles a 3D axis) in
  524. POVCAD, POV does not require a scaling factor.
  525.  
  526. When the scene file is EXPORTed to POV, the definition of the light_source
  527. will also include the spotlight keywords commented out.  If you need to use
  528. your light as a SPOTLIGHT, simply erase the "//" characters and replace the
  529. question marks "?" after each keyword with a proper value. Look at this
  530. example:
  531.        ***** part of a scene created with POVCAD ******
  532. // LIGHT_SOURCE
  533. object {
  534.   light_source{< .1   .2   .3  > color Blue
  535.     // If you need a spotlight, use the statements below
  536.     // replace ? with proper values
  537.     //spotlight
  538.     //point_at < ? ? ? >
  539.     //radius ?
  540.     //falloff ?
  541.     //tightness ?
  542.  }
  543. }
  544.  
  545.  
  546. *NEW* Grid Spacing command
  547.  
  548. The Grid helps you determine relative distances between points or objects.
  549. To show the Grid, click on the GridOff icon to enable the Grid.  Initially,
  550. the World area will be divided into 20 columns and 20 rows (always equal in
  551. number).  If you wish to modify this number, click on the VIEW menu and
  552. select the GRID SPACING command.  Enter an integer number.  This number will
  553. indicate the amount of rows AND columns, i.e.  10 indicates 10 rows and 
  554. 10 columns.  The higher the number the more precision you'll get.
  555.  
  556. Use the SnapOFF/ON to select only points which are in the grid.  Turning
  557. SnapOFF let's you select any place in the screen.  Experiment with it.
  558.  
  559.  
  560. How does POVCAD save the objects?
  561.  
  562. POVCAD saves 3 files for every session: {(4) is optional }
  563. 1) *.CAD   This is the object definitions file
  564. 2) *.TEX   file with the textures of each object
  565. 3) *.WRL   world definition of the session
  566. 4) *.PTH   data files to be used in your animation programs
  567.  
  568. *.CAD file structure:
  569. This is the format that POVCAD uses for those of you that want to create
  570. external programs to deal with them.  The file is an ASCII file with 
  571. double quotes at the begining and end of each statement:
  572.  
  573. rx,ry,rz = rotations about each axis (absolute)
  574. tx,ty,tz = translations on each axis
  575. sx,sy,sz = scale factors for x,y and z
  576.  
  577. **** IMPORTANT: Each parameter is separated by 1 space.  This is important
  578.        if you're writing utilities for POVCAD.  This space is REQUIRED.
  579.  
  580.  
  581. 1) Plane:    "PLN axis rx ry rz tx ty tz sx sy sz" 
  582.  
  583. Example:
  584. "PLN X 0.0 0.0 0.0 0.0 0.0 0.0 1 1 1"
  585.      
  586. 2) Cylinder  "CYL radius height rx ry rz tx ty tz sx sy sz"
  587.  
  588. Example:
  589. "CYL .2 1 0.0 0.0 0.0 0.0 0.0 0.0 1 1 1"
  590.  
  591. 3) Cone:     "CON radius height rx ry rz tx ty tz sx sy sz"
  592.  
  593. Example:
  594.    "CON .2 1 0.0 0.0 0.0 0.0 0.0 0.0 1 1 1"
  595.  
  596. 4) Sphere:   "SPH radius rx ry rz tx ty tz sx sy sz"
  597.   (tx ty and tz are the center of the sphere)
  598.   (sx sy sz must have the same value)
  599.  
  600. Example:
  601.    "SPH .5 0.0 0.0 0.0 0.0 0.0 0.0 1 1 1"
  602.  
  603. 5) Ellipsoid: "ELI xradius yradius zradius rx ry rz tx ty tz sx sy sz"
  604.  
  605. Example:
  606.    "ELI .5 .2 .3 0.0 0.0 0.0 0.0 0.0 0.0 1 1 1"
  607.    
  608. 6) Torus:     "TOR radius_major radius_minor rx ry rz tx ty tz sx sy sz" 
  609.  
  610. Example:
  611.    "TOR .7 .2 0.0 0.0 0.0 0.0 0.0 0.0 1 1 1"
  612.  
  613. 7) Box:       "BOX rx ry rz tx ty tz sizex sizey sizez"
  614. (the Box is a unit cube that has been scaled to size)
  615.  
  616. Example:
  617.    "BOX 0.0 0.0 0.0 0.0 0.0 0.0 1 2 .1"
  618.  
  619. 8) HeightField "HFL filename.ext rx ry rz tx ty tz sx sy sz"
  620. (POVCAD draws a pyramid to represent it, with dimensions x=1 y=1 z=1, 
  621.  so it must be scaled properly.  Check POV's docs on height_field.)
  622.  
  623. Example
  624.    "HFL mountain.gif 0.0 0.0 0.0 0.0 0.0 0.0 1000 1000 3245"
  625.  
  626. 9) RAW: "RAW filename.ext rx ry rz tx ty tz sx sy sz"
  627.    (Consider using Steve Anger's RAW2POV, it's more efficient. Don't
  628.     say I didn't tell you about it!)
  629. Example:
  630.     "RAW sweep.dat 0.0 0.0 0.0 0.5 1.3 0.0 1 1 1"
  631.  
  632. 10) Sweep
  633.     (same as RAW only that the SWP keyword appears instead of RAW)
  634.  
  635. 11) Extrude 
  636.     (same as RAW)
  637.  
  638. 12) Path
  639.     "PTH filename.ext 0.0 0.0 0.0 0.0 0.0 0.0 1 1 1"
  640.     This command points to a file with the format:
  641.      p1.x p1.y p1.z
  642.      p2.x p2.y p2.z
  643.      ....ect .....
  644.     
  645.     which was created with POVCAD or that you made up yourself.
  646.  
  647. 13) Light Source
  648.     "LTS 0.0 0.0 0.0 X Y Z .25 .25 .25"
  649.     
  650.     Comments: 
  651.      * The first three numbers are not used at all.
  652.      * X Y Z refer to the light source position
  653.      * the three .25 values are scaling factors that only affect
  654.        the drawing on POVCAD.   You may change those numbers to
  655.        suit your needs by using the XFORM command (scale x,y,z).
  656.      * The light_source color is in the *.TEX file.
  657.  
  658.  
  659. The *.TEX file structure:
  660. The *.tex file has a line for every item in the *.cad file.  Some places
  661. may be empty but the file length is the same as the *.cad file.  If you
  662. created light_sources, the colors will appear here also.
  663.  
  664. The *.WRL file structure:
  665. This file has 4 values (if it's not found in your directory, POVCAD
  666. assumes a world definition of (-1,-1)-(1,1) ):
  667.  
  668. WXleft  WYbottom
  669. WXright WYtop
  670.  
  671. These values correspond to the YX plane view.
  672.  
  673. The *.PTH file structure
  674. This is a straight ASCII file with a list of 3D points:
  675.  
  676. p1.x p1.y p1.z
  677. p2.x p2.y p2.z
  678. ... ect...
  679.  
  680. The data has already been transformed by any operations you might have
  681. done inside POVCAD.
  682.  
  683.  
  684. Other Stuff
  685. --------------------------------------------------------------------
  686. Limits
  687. At this point up to 100 objects may be created.  You may do complicated
  688. objects by MERGEing files.  This will change on future versions.
  689.  
  690. CSG/COMPOSITE Objects
  691. You can not XFORM the whole CSG/COMPOSITE object...you may XFORM any of
  692. the components.
  693.  
  694. World Coordinates Definition:
  695. POVCAD starts with (-1,-1)-(1,1) => (lowerleftcorner)-(upperleftcorner).
  696. Click on View and then World to change that or use the ZoomIn/Out icons
  697. to scale up or down.  When you ZoomIn the world = world/scalefactor and 
  698. when you ZoomOut the world = world * scalefactor.  
  699.  
  700. Pan
  701. You can Pan(scroll) in all direction by clicking on the arrows.  You may
  702. change the Pan Step Size to move faster or slower. Experiment with it.
  703.  
  704. Copy (from the Edit menu)
  705. The Copy function will create an exact copy of the current object. That
  706. means that it will be also in the SAME place as the original.  Then XFORM
  707. will be shown and select the transformation necessary to put the new object
  708. where it should be.  Click on redraw to refresh the screen if necessary.
  709.  
  710. Files
  711. The Export to POV creates a POV format file of the current scene.  The
  712. default name is POVCAD.OUT...the name can be changed.  It also creates 
  713. any path files (*.PTH) that are in memory.
  714.  
  715. AutoRedraw ON/OFF
  716. There's an icon to turn on/off the autoredraw feature.  With the option 
  717. on ON the drawing is sent to a buffer first and then appears on the screen.
  718. With the option on OFF the screen will be redraw everytime that you select
  719. the TEXTURE, SESSION or XFORM windows.  Experiment which one works best for you.
  720. The important point is that in ON you pay a price with memory.  Check
  721. with your system, you decide.
  722.  
  723.  
  724. Suggestions
  725. Create a standard view file with lightsources and camera and put
  726. somewhere the statement #include "myscene.pov" to include your scene.
  727. That's what I do and works OK for me.
  728.  
  729.  
  730. Your Suggestions
  731. I do welcome your comments and suggestions!  Registered users have a
  732. better chance of seeing their comments incorporated in the program.
  733. If you like it or not let me know!
  734.  
  735.  
  736. BUG LIST (ugh!) [Check Pi Square BBS for the latest updates!]
  737. ---------------
  738. Ver 1.0a 2/8/93   (thanks to Bill Martin!)
  739.   - (fixed) error in height_field definition (was totally wrong!)
  740.  
  741.   - added "object { }" and "color" keywords to light_source object
  742.  
  743.   - error on cone definition (not sure what the problem is :( )
  744.  
  745. Ver 1.0b 3/27/93 
  746.   - (fixed) You may press [OK] on the SESSION windows without having done
  747.     a selection. (the program used to crash)
  748.  
  749.   - Cone_Y was changed to QCone_Y since Cone_Y was used in an old version
  750.     of the SHAPES.INC include file.  If you have the old version, replace
  751.     QCone_Y with Cone_Y.
  752.  
  753.   - (fixed)The 3D axis was not appearing at the beginning of the program.
  754.  
  755.   - The name of the file now appears at the top of the Window (caption).
  756.     If no file is present, the caption "POVCAD version#" will appear.
  757.  
  758.   - When a POV file is created with the EXPORT function, the name of the
  759.     file, date and time of creation will appear on the top.  
  760.     
  761.     (thanks to Phil Long!)
  762.   - (fixed) The copy function was not copying the texture to the new object.
  763.  
  764.   - (fixed) When opening the texture window and color window, you may click
  765.     on the texture or color word to accept it...no need to click on [OK].
  766.   
  767.     (thanks to Bill Martin!)
  768.   - I added a scroll bar at the bottom right area of the screen, near the
  769.     current object and texture info box.  Once an object is created, it will
  770.     appear in the info box.  If you have more than one, simply scroll thru
  771.     each one...no need to use the SESSION dialog box anymore unless you want
  772.     to see more than one object at a time.  The object that appears in the box
  773.     is the current object and may be XFORMed at any time.
  774.  
  775.     (thanks to Peter Jack!)
  776.   - (fixed) Light source was not accepting negative numbers
  777.  
  778. Ver 1.0c 4/2/93  
  779.     (thanks to Neil Clark and Kevin Luck!)
  780.   - (fixed) The "SAVE AS.." command was not working properly.
  781.  
  782. Ver 2.0 4/10/93
  783.     (thanks to Phil Long!)
  784.   - Modified RAW data output (format).  Sometimes only "." would appear!
  785.     The new format is "#.###E##".
  786.  
  787.   - (fixed) Bug in the SWEEP command.  The command worked ok only on the YX
  788.     view...the others would give incorrect swept images.
  789. ------------------------------------------------------------------------
  790.  
  791.     REGISTRATION FORM FOR POVCAD 2.0  (c) Alfonso Hermida 1993
  792.  
  793.         COMPLETE THE REQUIRED INFORMATION
  794.             Send check or money order to
  795.              Alfonso Hermida
  796.                9346 Kings Grant Rd
  797.              Laurel MD 20723
  798.  
  799.  
  800. Name   :_________________________________         Date:_________
  801.  
  802. Address:________________________________________________________   
  803.  
  804.     ________________________________________________________
  805.  
  806.     ________________________________________________________
  807.  
  808.  
  809. Phone  :__________________________________
  810.  
  811.  
  812. Your registration entitles you to support thru Pi Square BBS.  Write
  813. a temporary password to add your account to the BBS:
  814.  
  815. BBS password: _________________________
  816.  
  817.  
  818. Registered users of a given version do not have to register for minor 
  819. revisions. For example, if you registered version 1.0, then 1a,1b,1c are 
  820. minor revisions, and version 2.0 will be a major revision.
  821.  
  822. Registration  fee:  Upgrade from version 1.x ....... $ 5.00 (USA).  
  823.             New user........................ $15.00 (USA).
  824.  
  825. Would you be interested in the source code?  Yes[  ]   No[  ]
  826. (written in Visual Basic 2.0)
  827.  
  828. Comments:__________________________________________________________
  829.  
  830. ___________________________________________________________________
  831.  
  832. ___________________________________________________________________
  833.  
  834. ----------------------------------------------------------------------
  835.